import React from 'react'
import "./Left.less"
function Left(props) {
    let {arr,n,reqGoodsList} = props
    return (
        <div>
            <ul className="left">
                {
                    arr.map((item, index) => (
                        <li key={item.id} className={index === n ? "select" : ""} onClick={() => reqGoodsList(item.id, index)}>{item.catename}</li>
                    ))
                }
            </ul>
        </div>
    )
}
export default React.memo(Left)